package com.wang.JinDong2;

public class ProductInShopCar extends Product{
    private int number;
    public ProductInShopCar(){

    }

    public ProductInShopCar(int id, String name, int price, String color, int size, int number) {
        super(id, name, price, color, size);
        this.number = number;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    @Override
    public void show() {
        super.show();
        System.out.print(number);
        System.out.println();
    }
}
